function vs:system/game_ctrol/kill_all
function vs:system/game_ctrol/stream_minecart/clear_output

execute as @a[tag=playing] at @s run function vs:system/game/player_reset

gamemode adventure @a[team=!]

kill @e[type=item,tag=]
team leave @a
scoreboard players set game_run system 0
scoreboard players set only_init system 0
scoreboard players reset devour_attack system
scoreboard players reset devour_coming system
scoreboard players reset stream_type system

bossbar set vs:blue_stream_barrier_hp players
bossbar set vs:red_stream_barrier_hp players
bossbar set devour_coming players

scoreboard objectives setdisplay list winCount

scoreboard players reset void_stream_before_change system

data remove storage vs:system temporarySettings

#resetMap
#BLUE
fill 141 71 437 252 -64 293 air
#RED
fill 143 65 74 248 -64 223 air